package com.property.biz.Impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.annotation.Scope;
import org.springframework.stereotype.Service;

import com.property.biz.ManagementBiz;
import com.property.dao.ManagementDao;
import com.property.entity.Management;

@Service("managementBiz")
@Scope("prototype")
public class ManagementBizImpl implements ManagementBiz{
	
	@Autowired
	private ManagementDao managementDao;
	
	public Management ManGet(int id) {
		
		return managementDao.ManGet(id);
	}

	public List<Management> getCommunity(String addressType, Integer addressId,
			String cname, int startIndex, int pageSize) {
		return managementDao.getCommunity(addressType, addressId, cname, startIndex, pageSize);
	}

	public Management getCommunityById(int id) {
		return managementDao.getCommunityById(id);
	}

	public void addManage(Management management) {
		managementDao.addManage(management);
	}

	public void updateMan(Management management) {
		managementDao.updateMan(management);
		
	}

	public Management getManById(int mid) {
		
		return managementDao.getManById(mid);
	}

	public Management ManGetCid(int cid) {

		return managementDao.ManGetCid(cid);
	}

	public List<Management> getAll() {
		
		return managementDao.getAll();
	}

	public void delManagement(int cid) {
		managementDao.delManagement(cid);
	}

	public List<Management> getUserId(int cid) {
		return managementDao.getUserId(cid);
	}

}
